package com.dream.libxrec.encode.audio;

import android.media.MediaCodec;
import android.media.MediaFormat;

import java.nio.ByteBuffer;

public interface IAudioEncoderListener {
        public void onFormat(MediaFormat format);
        void onFrame(ByteBuffer buffer,
                     MediaCodec.BufferInfo info);
        void onFrame(byte[] buffer,
                     int size,long pts);
    }